const user = {
  createDate: '2024-10-31 12:38:04',
  id: 1,
  model: null,
  account: 'dtxg',
  mobileNumber: null,
  status: null,
  birthday: null,
  address: null,
  slogan: null,
  avatar:
    'https://p6-passport.byteacctimg.com/img/user-avatar/9cac5d4204be87b84d5c63f1d74e998c~90x90.awebp',
  nickName: '庄必凡',
}
function getRes(data) {
  return {
    success: true,
    errCode: null,
    errMsg: null,
    data,
  }
}

export default [
  {
    url: '/api/account/login',
    method: 'post',
    response: getRes({
      ...user,
      accessToken:
        'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsImV4cGlyZV90aW1lIjoxNzQ4NDgyMTU2ODgxfQ.wDfVw01ELxdpTOSsXSFjTnKrUozeCmIj6DnJc_lCsYQ',
    }),
  },
  {
    url: '/api/account/get/token/:token',
    method: 'get',
    response: getRes(user),
  },
]
